home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11242 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.interpath.net!Andy
  2. From: andy@ciinc.com (Andy Barnhart)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
  4. Subject: Re: Best way to resume from an exception
  5. Date: Wed, 13 Mar 96 13:54:15 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4i6jm4$mmg@news.interpath.net>
  8. References: <4i1qr9$g15@nntp1.best.com>
  9. NNTP-Posting-Host: cii02.ciinc.com
  10. X-Newsreader: News Xpress 2.0 Beta #0
  11.  
  12. In article <4i1qr9$g15@nntp1.best.com>, DrLaz@aol.com wrote:
  13. >OK, wizards, what do you-all think is the best way to pick up after an
  14. >exception from the point at which it was thrown? For example--
  15.  
  16. We do try/catch blocks around UI actions, so if a user encounters
  17. a bug it's less disasterous. We pop up a message box asking that
  18. the developers be notified of the circumstances and offer a file SaveAs
  19. (when possible) and suggest exiting ASAP. We don't throw exceptions
  20. on purpose - if we encounter one it is considered a serious error. We
  21. do attempt to resume, but in all probability some memory has been
  22. allocated and will not be freed, and initialization of an object (a CView
  23. derived class, for example) may not be complete. The reason we resume 
  24. is purely PR - the customer feels a lot better about the app if it comes
  25. back to life after hitting an exception and allows him to close "normally".
  26.  
  27. -Andy
  28.